//
//  AlertsDetailViewController.m
//  Againstpoor
//
//  Created by 辰领科技 on 16/11/6.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "AlertsDetailViewController.h"

@interface AlertsDetailViewController ()
@property (weak, nonatomic) IBOutlet UIView *navView;
@property (weak, nonatomic) IBOutlet UIScrollView *scroview;
@property (weak, nonatomic) IBOutlet UIImageView *image;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;
@property (weak, nonatomic) IBOutlet UIButton *nameButton;
@property (weak, nonatomic) IBOutlet UIButton *timeLabel;

@end

@implementation AlertsDetailViewController

- (void)viewWillAppear:(BOOL)animated  {
    [super viewWillAppear:animated];
    [self getalertsDetail];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initViewLayout];
}


- (void)initViewLayout {
    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.navView];
    [self adaptiveViewLayout:self.scroview];
    self.scroview.contentSize = flexibleSize(CGSizeMake(0, 505), NO);
}

- (IBAction)back:(id)sender {
    [self backBtn];
}
#pragma mark - 扶贫快讯详情
- (void)getalertsDetail {
    NSMutableDictionary * dic = [NSMutableDictionary dictionary];
    [dic setObject:self.artiId forKey:@"artiId"];
    self.shareApi.delegate = self;
    [self.shareApi  requestOperationWithDic:dic withPath:F_articlesDetail withHttpType:@"POST" withTag:F_F_articlesDetail];
}

#pragma   mark---- GetADBanner Request Delegate

-(void)fetchDatabaseFinished:(NSMutableDictionary *)database withTag:(NSInteger)tag{
    if (tag==F_F_articlesDetail) {
        
        if (  [[database valueForKey:@"flag"] integerValue]!=1 ) {
            NSDictionary *dic = database[@"rows"];
            
        }else  {
        }
    }
}
-(void)fetchDatabaseFailed:(NSError *)error message:(NSString *)message{

    [self dismissWaitDialog];
    
}
@end
